package com.eshop.modules.category.service.dto;

import java.io.Serializable;

public class StoreCategorySmallDto implements Serializable
{
    private Integer id;
    private String cateName;
    
    public Integer getId() {
        return this.id;
    }
    
    public String getCateName() {
        return this.cateName;
    }
    
    public void setId(final Integer id) {
        this.id = id;
    }
    
    public void setCateName(final String cateName) {
        this.cateName = cateName;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof StoreCategorySmallDto)) {
            return false;
        }
        final StoreCategorySmallDto other = (StoreCategorySmallDto)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$cateName = this.getCateName();
        final Object other$cateName = other.getCateName();
        if (this$cateName == null) {
            if (other$cateName == null) {
                return true;
            }
        }
        else if (this$cateName.equals(other$cateName)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof StoreCategorySmallDto;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $cateName = this.getCateName();
        result = result * 59 + (($cateName == null) ? 43 : $cateName.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "StoreCategorySmallDto(id=" + this.getId() + ", cateName=" + this.getCateName() + ")";
    }
}
